function get_integer_interval_2(number_a, number_b) {
  //在这里写入代码
  let arr1 = [] ;
  let arr2 = [] ;
  //不相等
  if(number_a > number_b){
    for(let value = number_a ;value >= number_b ; value --){
      arr1.push(value) ;
    }
  }
  if(number_a < number_b){
    for(let value = number_a ;value <= number_b ; value ++){
      arr1.push(value) ;
    }
  }
  //相等情况
  if ((number_a === number_b)) {
      arr1.push(number_a) ;
    }
  return arr1.filter((item) => (item %2 === 0)); 
}
module.exports = get_integer_interval_2;
// console.log(get_integer_interval_2(5,5));
// console.log(get_integer_interval_2(1,10));
// console.log(get_integer_interval_2(10,1));
// console.log([10,9,8,7,6,5,4,3,2,1].filter((x)=>(x%2==0)));

